#ifndef CDRAWINGBOARDWIDGET_H
#define CDRAWINGBOARDWIDGET_H

#include "Macro.h"
#include "DrawWidget.h"
#include <QLayout>

#include <QWidget>
#include <QToolButton>


class CDrawingBoardWidget : public QWidget
{
    Q_OBJECT

public:
    CDrawingBoardWidget(QWidget *parent = Q_NULLPTR);
    ~CDrawingBoardWidget();

    void resizeEvent(QResizeEvent *event) override;

protected slots:
    int fn_Recv_RectangleBtn_Clicked();
    int fn_Recv_EllipseBtn_Clicked();
    int fn_Recv_TriangleBtn_Clicked();
    int fn_Recv_LineBtn_Clicked();
    int fn_Recv_RotateLeftBtn_Clicked();
    int fn_Recv_RotateRightBtn_Clicked();
    int fn_Recv_BlackPenBtn_Clicked();
    int fn_Recv_RadPenBtn_Clicked();
    int fn_Recv_BluePenBtn_Clicked();
    int fn_Recv_PentagonBtn_Clicked();


private:

    QToolButton m_RotateLeftBtn;
    QToolButton m_RotateRightBtn;
    QToolButton m_RectangleBtn;
    QToolButton m_EllipseBtn;
    QToolButton m_TriangleBtn;
    QToolButton m_LineBtn;
    QToolButton m_BlackPenBtn;
    QToolButton m_RadPenBtn;
    QToolButton m_BluePenBtn;
    QToolButton m_PentagonBtn;

    CDrawWidget m_DrawWidget;  //绘画窗体
};

#endif // CDRAWINGBOARDWIDGET_H
